package cn.caplike.demo.repository.bytebuddy;

import net.bytebuddy.agent.builder.AgentBuilder;

public class Foo {

    public String sayHelloFoo() {
        return "print";
    }

    /**
     * Description: 获取当前类所在的 classpath.
     *
     * @author LiKe
     * @date 2023-06-18 10:48:35
     */
    public static String getClasspath() {
        return Foo.class.getProtectionDomain().getCodeSource().getLocation().getPath();
    }
}
